package com_djm_2025_05_29;
import java.util.Scanner;
public class Demo2 {
    public static void main(String[] args) {
        int count = 0;
        Scanner scanner = new Scanner(System.in);



        //write your code here......
        while(scanner.hasNextInt() && scanner.nextInt() > 0){
            count++;
        }

        System.out.println(count);
    }
}
